package com.atguigu.gmall.common.consts;

/**
 * @Author:lyd
 **/
public class RedisConst {
    public static final String SKU_INFO_CACHE_PREFIX= "sku:info:";
    public static final String BITMAP_SKUIDS = "bitmap:skuIds:";
    public static final String LOCK_PREFIX = "lock:";
    public static final long SKU_INFO_TTL = 15*24*3600*1000L;//在15天之后过期
    public static final int SKU_INFO_MAX_RANDOM_OFFSET = 600000; //随机时间10分钟
    public static final long SKU_INFO_BUSINESS_SLEEP_TIME = 200L;//业务默认休眠时间200毫秒
    public static final String LOGIN_USER = "login:user:";
    public static final String CART_KEY_PREFIX = "cart:info:";
    public static final Long CART_ITEM_SIZE_LIMIT = 5L;//每件商品限购数量
    public static final long CART_TOTAL_LIMIT = 5;//购物车商品总数限制
    public static final String ORDER_PREVENT_DUPLICATE_SUBMIT = "order:duplicate:submit_";//防重复提交token前缀
}
